function localSequence=createNewSequence(correspondingTriangles, tour1, guess, tour2)

N=length(correspondingTriangles);
guess=guess+100*rand(3,1);
%guess(3)=abs(guess(3))+1400;

n=3;
currentSequence=[tour1, guess, tour2]';

while(n<N)
    A=zeros((2*n-1),n);
    n=2*n-1;
    j=1;
    i=1;
    while (i<n)
        A(i,j)=1;
        i=i+1;
        A(i,j:(j+1))=[1/2, 1/2];
        i=i+1;
        A(i,j:(j+2))=[1/4, 1/2, 1/4];
        i=i+1; j=j+1;
        A(i,j:(j+1))=[1/2, 1/2];
        i=i+1;
        j=j+1;
    end
    A(i,j)=1;
    currentSequence=A*currentSequence;
end

localSequence=currentSequence';
B=localSequence(:,1);
C=localSequence(:,2);
A=2*B-C;
localSequence=[A, localSequence];

A=localSequence(:,end-1);
B=localSequence(:,end);
C=2*B-A;
localSequence=[localSequence, C];